package com.xdf.zipperdye.service;

import com.xdf.zipperdye.dao.business.BillTypeMapper;
import com.xdf.zipperdye.model.BillType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BillTypeServiceImpl implements BillTypeService {
    @Autowired
    private BillTypeMapper dao;
    @Override
    public int deleteByPrimaryKey(Integer iid) {
        return dao.deleteByPrimaryKey(iid);
    }

    @Override
    public int insert(BillType record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(BillType record) {
        return dao.insertSelective(record);
    }

    @Override
    public BillType selectByPrimaryKey(Integer iid) {
        return dao.selectByPrimaryKey(iid);
    }

    @Override
    public int updateByPrimaryKeySelective(BillType record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(BillType record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public List<BillType> getBillType8Storage(String storageSid) {
        return dao.getBillType8Storage(storageSid);
    }

    @Override
    public List<BillType> selectAll() {
        return dao.selectAll();
    }
}
